package com.bjsxt.service.impl;

import com.bjsxt.mapper.EmployeeMapper;
import com.bjsxt.pojo.Employee;
import com.bjsxt.service.EmployeeService;
import com.bjsxt.util.SqlsesionUtil;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

public class EmployeeServiceImpl implements EmployeeService {
    @Override
    public List<Employee> findMgr() {
        SqlSession sqlSession = SqlsesionUtil.getSqlSession();
        List<Employee> list = sqlSession.getMapper(EmployeeMapper.class).selectMgr();
        sqlSession.close();
        return list;
    }
}
